﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="lp_Report_list.aspx.cs"
    Inherits="ZLDC.Estate.Quantify.lp_Report_list" %>

<%@ Register Src="../UserControl/Dept_Tree.ascx" TagName="Dept_Tree" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />

    <script src="../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript">

        window.onload = function() {
            var reqdeptid = '<%=deptid %>';
            var deptname = '<%=deptname %>';

            var type = '<%=type %>';
           
            if (type == '1') {
                document.getElementById('if1').src = '';
                $("#umainclass").val(deptname);
                $("#utxdeptid").val(reqdeptid);

                var deptId = $("#utxdeptid").val(); // 部门ID
                var addDate1 = $("#iStartDay").val();                               // 日期
                var addDate2 = $("#iEndDay").val();                                 // 日期
                var isContainsSelf = 0;       // isContainsSelf 查询下级子部门时,是否包括自己 1不包括
                document.getElementById('if1').src = "Report/lp_Report_list.aspx?deptid=" + deptId + "&statrday='" + escape(addDate1) + "'&endday='" + escape(addDate2) + "'";
      
            }
            else {
                document.getElementById('if1').src = 'Report/lp_Report_list.aspx';
                
            }
            
            }
        function Search() {
         
            
            var deptId = $("#utxdeptid").val(); // 部门ID
                                   
                    
            var addDate1 = $("#iStartDay").val();                               // 日期
            var addDate2 = $("#iEndDay").val();                                 // 日期
            var isContainsSelf = 0;       // isContainsSelf 查询下级子部门时,是否包括自己 1不包括
            document.getElementById('if1').src = "Report/lp_Report_list.aspx?deptid=" + deptId + "&statrday='"+escape(addDate1) +"'&endday='" + escape(addDate2) + "'";
        }
    </script>

    <style type="text/css">
        html
        {
            height: 90%;
        }
    </style>
</head>
<body style="height: 100%">
    <form id="form1" runat="server" style="height: 100%">
    <div id="divSearch" style="margin-top: 5px; text-align: center; height: 100%">
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce"
            style="height: 100%">
            <tr>
                <td style="width: 45%; text-align: left; background-color: #FFFFFF; cursor: pointer;"
                    valign="middle">
                    时间:<input id="iStartDay" name="iStartDay" runat="server" onclick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-{%d-1}'})"
                        style="width: 100px;" />
                    ~
                    <input id="iEndDay" name="iEndDay" runat="server" onclick="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-{%d-1}'})" style="width: 100px;" />
                </td>
                <td style="text-align: left; background-color: #FFFFFF; cursor: pointer;" valign="middle">
                    部门： &nbsp;<uc1:Dept_Tree ID="Dept_Tree1" runat="server" />
                    &nbsp;<input id="btnSearch" class="button_bak" type="button" value="查询" onclick="Search()" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style='background-color: #FFFFFF; height: 100%'>
                    <iframe id="if1" runat="server" src="" width="100%" height="100%"  frameborder="0">
                    </iframe>
                </td>
            </tr>
        </table>
    </div>
    <%=ZLDC.Topo.BLL.Estate.lp_Basis.GetManagerlh()%>
    </form>
</body>
</html>
